'use strict';
/**
 * @ngdoc function
 * @name sbAdminApp.controller:MainCtrl
 * @description
 * # MainCtrl
 * Controller of the sbAdminApp
 */
angular.module('sbAdminApp')
  .controller('MainCtrl', ['$scope', '$position', '$rootScope', 'CourseService', function($scope,$position, $rootScope, CourseService) {

  	$scope.$watch(function() {
	    return $rootScope.courselist;
	  }, function() {
	    $scope.courselist = $rootScope.courselist;
	  }, true);
  }]);
